package com.ylr.blog.framework.controller.web;

import java.util.Map;

import com.ylr.base.common.tool.Result;
import com.ylr.blog.framework.service.BlogFlowService;
import com.ylr.blog.framework.entity.BlogFlowEntity;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.*;


/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-19 20:34:55
 * className: BlogFlowWebController
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/blog-flow")
@AllArgsConstructor
public class BlogFlowWebController {

    private static final Logger log = LoggerFactory.getLogger(BlogFlowWebController.class);

    private BlogFlowService blogFlowService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public Result<Object> saveYbBlogFlow(@RequestBody BlogFlowEntity ybBlogFlow) {
//        blogFlowService.save(ybBlogFlow);

        return Result.success();
    }

    /**
     * 列表
     */
    @GetMapping("/page/list")
    public Result<Object> pageYbBlogFlowList(@RequestParam Map<String, Object> params) {
//        PageUtils page = blogFlowService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @GetMapping("/get")
    public Result<Object> getYbBlogFlow(@RequestParam("id") Long id) {
//		BlogFlowEntity ybBlogFlow = blogFlowService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @PostMapping("/update")
    public Result<Object> updateYbBlogFlow(@RequestBody BlogFlowEntity ybBlogFlow) {
//		blogFlowService.updateById(ybBlogFlow);

        return Result.success();
    }

    /**
     * 删除
     */
    @DeleteMapping("/delete")
    public Result<Object> deleteYbBlogFlow(@RequestBody Long[] ids) {
//		blogFlowService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
